package com.hcx.xml.sax;

import org.xml.sax.XMLReader;
import org.xml.sax.helpers.XMLReaderFactory;

public abstract class XmlTool {
	public static XMLReader getXmlReader() {
		XMLReader reader = null;
		try {
			reader = XMLReaderFactory
					.createXMLReader("com.sun.org.apache.xerces.internal.parsers.SAXParser");
		} catch (Exception ex) {
			throw new RuntimeException(String.format("加载%s,失败！",
					"org.apache.xerces.parsers.SAXParser"), ex);
		}
		return reader;
	}
}
